package Entity;


import java.sql.Date;

/**
 * 图书信息
 * @Author Chen
 * @Date 2022/1/6 9:34
 * @Version 1.0
 */
public class Books {
    private int bookNumber;
    private String bookName;
    private String author;
    private String press;
    private Date publicationDate;
    private int printingTimes;
    private double unitPrice;
    private int bookTypeNumber;
    private boolean Status=true;

    public Books() {
        super();
    }

    public Books(int bookNumber, String bookName, String author, String press, Date publicationDate, int printingTimes, double unitPrice, int bookTypeNumber, boolean status) {
        this.bookNumber = bookNumber;
        this.bookName = bookName;
        this.author = author;
        this.press = press;
        this.publicationDate = publicationDate;
        this.printingTimes = printingTimes;
        this.unitPrice = unitPrice;
        this.bookTypeNumber = bookTypeNumber;
        Status = status;
    }

    public int getBookNumber() {
        return bookNumber;
    }

    public void setBookNumber(int bookNumber) {
        this.bookNumber = bookNumber;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public Date getPublicationDate() {
        return publicationDate;
    }

    public void setPublicationDate(Date publicationDate) {
        this.publicationDate = publicationDate;
    }

    public int getPrintingTimes() {
        return printingTimes;
    }

    public void setPrintingTimes(int printingTimes) {
        this.printingTimes = printingTimes;
    }

    public double getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(double unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getBookTypeNumber() {
        return bookTypeNumber;
    }

    public void setBookTypeNumber(int bookTypeNumber) {
        this.bookTypeNumber = bookTypeNumber;
    }

    public boolean isStatus() {
        return Status;
    }

    public void setStatus(boolean status) {
        Status = status;
    }

    @Override
    public String toString() {
        return bookNumber +"    "+bookName + "    "+author +"    "+press + "    "+publicationDate +
                "    "+printingTimes +"    "+unitPrice +"    "+bookTypeNumber +"    "+Status ;
    }
}
